package com.shijie.newvideo.pagerslidingtabstrip;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewpager.widget.ViewPager;

/**
 * @author zhangdunxiang
 * @date 2022/9/23
 */
public class MyViewPagerNoH extends ViewPager {
    public MyViewPagerNoH(@NonNull Context context) {
        super(context);
    }

    public MyViewPagerNoH(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    //向内部控件传递
    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }

    //不响应事件
    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return false;
    }

}
